<template>
  <Home>
    <template v-slot:haveAccount>没有账号吗？</template>
          <template v-slot:goLogin> 
        <span @click="goRegister">注册新账号</span> </template>
    <template v-slot:isshowlogin>
      <div class="changelogin">
        <span>使用微信扫码登录 </span>|<span> 使用短信登录</span>
      </div>
    </template>
  </Home>
</template>

<script lang="ts" >
import { Vue } from "vue-class-component";
import { useRouter } from "vue-router";
import { ref } from "vue";

import Home from "@/components/Login-Register/home.vue";
export default class Login extends Vue {
  router = useRouter();
  input = ref("");
  password = ref("");
  goRegister = () => {
    this.router.push({
      name: "register",
    });
  };
}
</script>

<style lang="less" scoped>
.changelogin {
  color: rgba(0, 0, 0, 0.26);
  font-size: 0.14rem;
  span {
    color: rgba(22, 93, 255, 1);
    font-size: 0.14rem;
    font-weight: 400;
    font-family: "PingFang SC";
  }
}
</style>